<?php
/**
* @file media_db_prefedit.php
* @version 0.0.1
* @package Media_db
* @copyright Copyright (C) 2006 Nikolai Plath. All rights reserved
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/
function mdb_EditPrefs () {
global $mosConfig_live_site;
global $database;
//$db = $mainframe->getDBO();
    //$query = "SELECT * FROM #__media_db_prefs";
$database->setQuery("SELECT * FROM #__media_db_prefs");
$mdbPrefs = $database->loadObjectList();
?>

<h1 align="center" class="mdb_outlinebox">Einstellungen</h1>

<form name="form1" method="post" action="<?php echo $mosConfig_live_site . "/index.php?option=com_media_db&akto=prefs_save" ?>">
	
	LISTE:<br />
	ToolTipBildchen H&ouml;he:
	<input name="ttbild_hoch" type="text" size="5" id="ttbild_hoch" tabindex="1" class="zahlenbox" value="<?php echo $mdbPrefs[0]->ttbild_hoch ?>" />
	<br />
	ToolTipBildchen Breite:
	<input name="ttbild_breit" type="text" size="5" id="ttbild_breit" tabindex="2" class=zahlenbox value="<?php echo $mdbPrefs[0]->ttbild_breit ?>" />
	<hr />
	CoverManager:<br />
	Bildchen/Zeile:
	<input name="cov_bilder_zeile" type="text" id="cov_bilder_zeile" size="3" maxlength="2" tabindex="3" class="zahlenbox" value="<?php echo $mdbPrefs[0]->cov_bilder_zeile;?>" />

	<div align="center">
		<input type="submit" name="Submit" value="Speichern" id="Submit">
	</div>
</form>

<?php
}
?>
